package com.example.test.carousel;

import android.app.Application;
import android.content.Context;
import android.util.DisplayMetrics;


public class App extends Application {
    public static int H, W;
    public static App app;

    @Override
    public void onCreate() {
        super.onCreate();
        app = this;
        getScreen(this);
    }

    public void getScreen(Context aty) {
        DisplayMetrics dm = aty.getResources().getDisplayMetrics();
        H = dm.heightPixels;
        W = dm.widthPixels;
    }
}
